package com.obtk.shilipai.dao;

import com.obtk.shilipai.entity.Shop;
import com.obtk.shilipai.entity.ShopType;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ShopMapper {
    Shop login(Shop loginShop);

    Shop getShopByAll(@Param("shopId") Integer shopId);

    List<ShopType> getShopType(@Param("typeId")Integer typeId);

    Integer updateShop(Shop shop);

    Integer selectUser(String shopUser);

    Integer addShop(Shop shop);

    Integer updateShopImage(Shop shop);

    List<Shop> selectShopByAll(String shopName);

    Integer selectShopName(String shopName);
}
